home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / gl_dev.idb / usr / share / src / OpenGL / demos / stonehenge / scene.h.z / scene.h
Encoding:
C/C++ Source or Header  |  1996-12-06  |  1.5 KB  |  65 lines

  1. #ifndef SCENE_H
  2. #define SCENE_H
  3.  
  4. #ifndef SCENE_EXTERN
  5. #define SCENE_EXTERN extern
  6. #endif
  7.  
  8. #include "TimeDate.h"
  9. #include "atmosphere.h"
  10.  
  11. void scene_init();
  12.  
  13. void scene_set_time(TimeDate t);
  14. void scene_inc_time(TimeDate t);
  15.  
  16. void scene_render();
  17.  
  18. void scene_viewer_center();
  19. /* This rotates about the origin in the world coordinate system */
  20. void scene_viewer_rotate_worldz(GLfloat degrees);
  21. /* This rotates about the z axis */
  22. void scene_viewer_rotatez(GLfloat degrees);
  23. void scene_viewer_rotatex(GLfloat degrees);
  24. /* This translates in y */
  25. void scene_viewer_translate(GLfloat dist);
  26.  
  27. void scene_position_telescope(GLfloat x, GLfloat y);
  28. void scene_get_position_telescope(GLfloat *x, GLfloat *y);
  29. void scene_get_radius_telescope(GLfloat *r);
  30.  
  31. void scene_set_weather(Weather w);
  32.  
  33. const GLint name_background = 0;
  34. const GLint name_ground = 1;
  35. const GLint name_trees = 2;
  36. const GLint name_ring = 3;
  37. const GLint name_ellipse = 4;
  38. const GLint name_telescope = 5;
  39.  
  40. extern int draw_ground;
  41. extern int draw_trees;
  42. extern int draw_ring;
  43. extern int draw_ellipse;
  44. extern int draw_shadows;
  45.  
  46. extern int use_lighting;
  47. extern int use_textures;
  48. extern int use_normal_fog;
  49. extern int use_fancy_fog;
  50. extern int use_telescope;
  51. extern int use_antialias;
  52.  
  53. extern GLfloat fov, aspect;
  54.  
  55.  
  56. const char texfile_ground[] = DATADIR "grass.rgb";
  57. const char texfile_trees[] = DATADIR "treewall.rgba";
  58. const char texfile_stones[] = DATADIR "marble.rgb";
  59. const char texfile_telescope[] = DATADIR "cv.rgb";
  60.  
  61. extern Weather weather;
  62.  
  63. #undef SCENE_EXTERN
  64. #endif
  65.